package 注入集合元素.main.java.com.itheima;

import com.itheima.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForDICollection {
    public static void main( String[] args ) {
        ApplicationContext IOC=new ClassPathXmlApplicationContext("applicationContext.xml");
        BookDao bookDao = (BookDao) IOC.getBean("bookDao");
        bookDao.save();
    }
}
